<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/bootstrap3/css/bootstrap.min.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/bootstrap3/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/blog.css">
<script src="${pageContext.request.contextPath}/static/bootstrap3/js/jquery-1.11.2.min.js"></script>
<script src="${pageContext.request.contextPath}/static/bootstrap3/js/bootstrap.min.js"></script>
<title>${pageTitle }-Powered by java_Good</title>
<style type="text/css">
	body{
		padding-top: 10px;
		padding-bottom: 40px;
		background-image:url(/web/image/fg3.jpeg);
		background-repeat: repeat-y;
		background-size: 100%;
		background-position: 0px -200px;
		position: relative;
		font-family: "microsoft yahei", Verdana, Arial, 微软雅黑;
	}

</style>
</head>
<body>
<div class="container">
	<jsp:include page="/foreground/common/head.jsp"/>
	
<%--	<jsp:include page="/foreground/common/menu.jsp"/>--%>
	<script type="text/javascript">
		function checkData(){
			var q=document.getElementById("q").value.trim();
			if(q==null || q==""){
				alert("请输入您要查询的关键字！");
				return false;
			}else{
				return true;
			}
		}
	</script>
	<div class="row" style="background-color: rgba(255,255,255,0.6);">
		<div class="col-md-12" style="padding-top: 10px;background-color: rgba(255,255,255,0);">
			<nav class="navbar navbar-default" style="background-color: rgba(255,255,255,0);">
				<div class="container-fluid" style="background-color: rgba(255,255,255,0);">
					<!-- Brand and toggle get grouped for better mobile display -->
					<div class="navbar-header" style="background-color: rgba(255,255,255,0);">
						<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
							<span class="sr-only">Toggle navigation</span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
						</button>
						<c:if test="${bloggerId!=100}">
						<a class="navbar-brand" href="${pageContext.request.contextPath}/index/${blogger.id}.htm"><font color="black"><strong>我的博客</strong></font></a>
							<a class="navbar-brand"><font color="black"><strong>丨</strong></font></a>
							<a class="navbar-brand" href="${pageContext.request.contextPath}/index/100.htm"><font color="black"><strong>所有博文</strong></font></a>
						</c:if></div>
					<c:if test="${bloggerId==100}">
						<a class="navbar-brand" href="${pageContext.request.contextPath}/index/100.htm"><font color="black"><strong>所有博文</strong></font></a>
					</c:if>


					<!-- Collect the nav links, forms, and other content for toggling -->
					<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1" style="background-color: rgba(255,255,255,0);">
						<ul class="nav navbar-nav" style="background-color: rgba(255,255,255,0);">
							<li><a href="${pageContext.request.contextPath}/blogger/bloggerIndex/${blogger.id}.htm"><font color="black"><strong>关于博主</strong></font></a></li>
							<%--			        <li><a href="${pageContext.request.contextPath}/baseCode.htm"><font color="black"><strong>本站源码下载</strong></font></a></li>--%>
						</ul>
						<ul class="nav navbar-nav" style="background-color: rgba(255,255,255,0);">
							<li><a href="${pageContext.request.contextPath}/bloggerMessage/showMessage.do"><font color="black"><strong>私信留言</strong></font></a></li>
						</ul>
						<form action="${pageContext.request.contextPath}/blog/q.htm" method="post" onsubmit="return checkData()"  class="navbar-form navbar-right" role="search">
							<div class="form-group">
								<input type="text" id="q" name="q" value="${q}" class="form-control" placeholder="请输入要查询的关键字...">
							</div>
							<button type="submit" class="btn btn-default">搜索</button>
						</form>
					</div><!-- /.navbar-collapse -->
				</div><!-- /.container-fluid -->
			</nav>
		</div>
	</div>
	
	<div class="row" style="background-color: rgba(255,255,255,0.7);">
<c:if test="${bloggerId!=100&&bloggerId!=50}">
	  <div class="col-md-3" style="background-color: rgba(255,255,255,0);">
	  		<div class="data_list" style="background-color: rgba(255,255,255,0.3);">
				<div class="data_list_title">
					<img src="${pageContext.request.contextPath}/static/images/user_icon.png"/>
					博主信息
				</div>
				<div class="user_image">
					<c:if test="${blogger.id=='1'}">
						<img src="${pageContext.request.contextPath}/image/bg2.jpg"/>
					</c:if>
					<c:if test="${blogger.id=='2'}">
						<img src="${pageContext.request.contextPath}/image/bg1.jpg"/>
					</c:if>

				</div>
				<div class="nickName" style="font-size: 20px;font-weight: bold">${blogger.nickName}</div>
				<div class="userSign" style="font-size: 12px;font-weight: bold;text-align: left">我的签名：${blogger.profile}</div>
				<div class="userSign" style="font-size: 12px;font-weight: bold;"> <ul class="nav container"><marquee behavior="scroll" direction="right" style="color: #1e9fff;font-size: 12pt;width: 250px;float: left">欢迎访问${blogger.userName}的博客~</marquee></ul></div>
			</div>
	  	
	  		<div class="data_list" style="background-color: rgba(255,255,255,0.3);">
				<div class="data_list_title">
					<img src="${pageContext.request.contextPath}/static/images/byType_icon.png"/>
					按日志类别
				</div>
				<div class="datas" style="background-color: rgba(255,255,255,0.3);">
					<ul>
						<c:forEach var="blogTypeCount" items="${blogTypeCountList }">
							<li><span><a href="${pageContext.request.contextPath}/index/${blogger.id}.htm?typeId=${blogTypeCount.id}">${blogTypeCount.typeName }</a></span></li>
						</c:forEach>
						
					</ul>
				</div>
			</div>
	  	<script type="text/javascript">
			var t=${blog.bloggerId}
			if (${bloggerId!=null}){
				t=${bloggerId}
			}
		</script>

			<div class="data_list" style="background-color: rgba(255,255,255,0.3);">
				<div class="data_list_title">
					<img src="${pageContext.request.contextPath}/static/images/byDate_icon.png"/>
					按日志日期
				</div>
				<div class="datas">
					<ul>
						<c:forEach var="blogCount" items="${blogCountList }">
							<li><span><a href="${pageContext.request.contextPath}/index/
							${blogger.id}.htm?releaseDateStr=${blogCount.releaseDateStr}">
									${blogCount.releaseDateStr }</a></span></li>
						</c:forEach>
						
					</ul>
				</div>
			</div>
			
			<div class="data_list" style="background-color: rgba(255,255,255,0.3);">
				<div class="data_list_title">
					<img src="${pageContext.request.contextPath}/static/images/link_icon.png"/>
					友情链接
				</div>
				<div class="datas">
					<ul>
						<c:forEach var="link" items="${linkList }">
							<li><span><a href="https://www.csdn.net/" target="_blank">${link.linkName }</a></span></li>
						</c:forEach>
					</ul>
				</div>
			</div>
	  		
	  </div>
</c:if>
		<div class="col-md-9">
			<jsp:include page="${mainPage}" />
		</div>
	</div>

	<jsp:include page="/foreground/common/foot.jsp"/>

	
</div>
</body>
</html>